cmake_minimum_required(VERSION 3.12)

project(hello-triangle)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

if(NOT CMAKE_BUILD_TYPE)
  set(CMAKE_BUILD_TYPE Release CACHE STRING
      "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
      FORCE)
endif()

message(STATUS "----- ${CMAKE_SOURCE_DIR}/deps/opengl/lib/x64/glad.c -----------")

add_executable(${PROJECT_NAME}
  ${CMAKE_SOURCE_DIR}/deps/opengl/lib/x64/glad.c
  ${CMAKE_CURRENT_SOURCE_DIR}/hello.cpp
)

add_executable(double-triangle
  ${CMAKE_SOURCE_DIR}/deps/opengl/lib/x64/glad.c
  ${CMAKE_CURRENT_SOURCE_DIR}/hello_exercise01.cpp
)
